import service from "@/utils/request.ts";
import {COMPLETE_PRE} from '@/api/port-info.ts'

/**
 * 获取日志分页数据
 * @param params 参数
 */
export async function getListPageReq(params: any) {
    return service({
        baseURL: COMPLETE_PRE,
        url: 'admin/log/getListPage',
        method: 'POST',
        data: params
    });
}

/**
 * 获取单个日志信息
 * @param params 参数
 */
export async function getOneLogReq(params: any) {
    return service({
        baseURL: COMPLETE_PRE,
        url: 'admin/log/getOneLog',
        method: 'POST',
        data: params
    });
}